﻿using System.Collections.Generic;

namespace Core.Domain.Common
{
    /// <summary>
    /// 扩展属性
    /// </summary>
    public partial class ExtendedAttribute : BaseEntity
    {
        private ICollection<ExtendedAttributeValue> _extendedAttributeValues;
        
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int DisplayOrder { get; set; }

        /// <summary>
        /// 所属实体
        /// </summary>
        public int ExtendEnumId { get; set; }

        /// <summary>
        /// 说明
        /// </summary>
        public string Memo { get; set; }

        /// <summary>
        /// 扩展属性值集合
        /// </summary>
        public ICollection<ExtendedAttributeValue> ExtendedAttributeValues
        {
            get { return _extendedAttributeValues; }
            set { _extendedAttributeValues = value; }
        }
        public ExtendEnum ExtendEnum
        {
            get
            {
                return (ExtendEnum)this.ExtendEnumId;
            }
            set
            {
                this.ExtendEnumId = (int)value;
            }
        }

    }
}
